/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package easyrgb.frame;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author tandn
 */
public class Test extends JFrame
{
    public Test(Image a)
    {
        setTitle("test!");
        setSize(400, 400);
        add(new t(a));
    }

    class t extends JPanel
    {
        Image image = null;
        public t(Image a)
        {
            image = a;
            updateUI();
        }
        
        @Override
        public void paint(Graphics g)
        {
            g.drawImage(image, 0, 0, this);
        }
    }
}

